package com.zbs.framework.dao.passport.entity;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 账户唯一标识实体类
 */
@Entity
@Table(name = "mnt_account")
@Getter
@Setter
@NoArgsConstructor
public class MNAccount implements Serializable {
    private static final long serialVersionUID = 5444931746907279773L;

    @Id
    @GenericGenerator(name = "idGenerator", strategy = "org.hibernate.id.UUIDGenerator")
    @GeneratedValue(generator = "idGenerator")
    private String uuid; // 账户uuid

    private Integer enabled; // 账户状态

    public MNAccount(Integer enabled) {
        this.enabled = enabled;
    }
}
